<template>
  <a-config-provider :locale="zhCN" size="small">
    <LayoutBasic>
      <router-view />
    </LayoutBasic>
  </a-config-provider>
</template>

<script setup lang="ts">
import zhCN from '@arco-design/web-vue/es/locale/lang/zh-cn';
onMounted(() => {
  // 监听全局未处理错误
  window.addEventListener('unhandledrejection', (event) => {
    event.preventDefault();
    console.log(event);
    console.error(`发现catch报错：${event.reason}`);
  });
});
</script>
